package com.siwei.mes.mapper.experiment;

import com.siwei.mes.common.base.BaseMapper;
import com.siwei.mes.entity.experiment.ExperimentMessage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 实验台账消息通知表(ExperimentMessage)表数据库访问层
 *
 * @author makejava
 * @since 2024-07-26 22:31:07
 */
public interface ExperimentMessageMapper extends BaseMapper<ExperimentMessage> {
    /**
     * 获取所有
     *
     * @param entity
     * @return
     */
    List<ExperimentMessage> getList(ExperimentMessage entity);

    /**
     * 根据id获取
     *
     * @param id
     * @return
     */
    ExperimentMessage loadById(@Param("id") Long id);

    /**
     * 根据id获取
     *
     * @param id
     * @return
     */
    int updateState(@Param("experimentId") Long id);

    /**
     * 根据试验委托id删除
     *
     * @param experimentId 试验委托id
     */
    void deleteByExperimentId(@Param("experimentId") Long experimentId);
}
